package com.aier.admin_new.service;

import java.util.List;
import java.util.Map;

import com.aier.user.entity.Letter;
import com.aier.user.entity.mapper.LetterRowMapper;

public interface  IMessageNService {

	/**
     * 发送聊天信息
     * @param suid
     * @param ruid
     * @param type
     * @param content
     * @param read
     * @param img
     * @return
     */
    int insertMessage(Long suid,Long ruid,Short type,String content,Short state,String img);
    
  
    
    /**
     * 获取聊天列表
     * @return
     */
    List<Letter> searchFollowMessage(Long uid);
    
    
    /**
     * 获取系统消息列表
     * @return
     */
    List<LetterRowMapper> searchSystemMessage(Long uid);
    
    /**
     * 是否与aier360团队建立聊天
     * @return 0 : 没有数据 1：有数据
     */
    int searchFlter(Long uid);
    
    /**
     * 获取私信详情
     * @param page
     * @param pagesize
     * @param lid
     * @return
     */
    Map<String,Object> searchMessageDetail(int page,int pagesize,Long lid);
    
    /**
     * 根据id删除私信
     * @param uid
     * @param ldidStr
     * @return
     */
    int deleteMessageByLdid(Long uid,String ldidStr);
    
    /**
     * 清空聊天
     * @param uid
     * @return
     */
    int deleteMessage(Long uid);
}
